import request from '@/utils/request'
export function fetchList(params) {
    return request({
        // url:'/ums/UmsMemberLevel/list',
        url: '/center/level/list',
        method:'get',
        params:params
    })
}

// 修改等级
export function editLevel(params) {
	console.log(params)
    return request({
        // url:'/ums/UmsMemberLevel/list',
        url: '/center/level',
        method:'put',
        data:params
    })
}
// 新增等级
export function addLevel(params) {
    return request({
        // url:'/ums/UmsMemberLevel/list',
        url: '/center/level',
        method:'post',
        params:params
    })
}
export function createMemberLevel(data) {
    return request({
        url:'/ums/UmsMemberLevel/create',
        method:'post',
        data:data
    })
}

export function deleteMemberLevel(id) {
    return request({
        url:'/ums/UmsMemberLevel/delete/'+id,
        method:'get',
    })
}

export function getMemberLevel(id) {
    return request({
        // url:'/ums/UmsMemberLevel/'+id,
		url:'/center/level/'+id,
        method:'get',
    })
}

export function updateMemberLevel(id,data) {
    return request({
        url:'/ums/UmsMemberLevel/update/'+id,
        method:'post',
        data:data
    })
}

